package com.ruoyi.web.controller.converter;

import java.io.BufferedReader;
import java.io.InputStreamReader;




/**
 * @author lth
 * @PackageName:com.ruoyi.web.controller.converter
 * @ClassName:DxfToGeoJsonConverter
 * @Description:
 * @date 2024/10/24 14:36
 */
public class DxfToGeoJsonConverter {


    public static void main(String[] args) {
//        try {
//            // 调用Python脚本
//            ProcessBuilder pb = new ProcessBuilder("python", "path/to/dxf_to_geojson.py");
//            Process p = pb.start();
//
//            // 读取脚本输出（可选，用于调试）
//            BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
//            String line;
//            while ((line = reader.readLine()) != null) {
//                System.out.println(line);
//            }
//
//            // 等待脚本执行完成
//            int exitCode = p.waitFor();
//            if (exitCode == 0) {
//                System.out.println("DXF to GeoJSON conversion successful!");
//            } else {
//                System.err.println("DXF to GeoJSON conversion failed with exit code: " + exitCode);
//            }
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }







    }
}
